package jp.co.lty.mai.model;

import java.io.Serializable;
import java.util.Date;

import org.slim3.datastore.Attribute;
import org.slim3.datastore.Model;

import com.google.appengine.api.datastore.Key;

@Model(schemaVersion = 1)
public class WorkingSheet implements Serializable {

    private static final long serialVersionUID = 1L;

    @Attribute(primaryKey = true)
    private Key key;

    @Attribute(version = true)
    private Long version;

    private Date date = new Date();

    private String startTime;

    private String endTime;

    private String jitudoTime;

    private String soutai;

    private String yukyu;

    private String kekkin;

    private String kisya;

    private String kisyaTime;

    private String gyomuTime;

    private String remarks;

    /**
     * Returns the key.
     *
     * @return the key
     */
    public Key getKey() {
        return key;
    }

    /**
     * Sets the key.
     *
     * @param key
     *            the key
     */
    public void setKey(Key key) {
        this.key = key;
    }

    /**
     * Returns the version.
     *
     * @return the version
     */
    public Long getVersion() {
        return version;
    }

    /**
     * Sets the version.
     *
     * @param version
     *            the version
     */
    public void setVersion(Long version) {
        this.version = version;
    }



    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((key == null) ? 0 : key.hashCode());
        return result;
    }

    @Override
    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        WorkingSheet other = (WorkingSheet) obj;
        if (key == null) {
            if (other.key != null) {
                return false;
            }
        } else if (!key.equals(other.key)) {
            return false;
        }
        return true;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    public String getJitudoTime() {
        return jitudoTime;
    }

    public void setJitudoTime(String jitudoTime) {
        this.jitudoTime = jitudoTime;
    }

    public String getSoutai() {
        return soutai;
    }

    public void setSoutai(String soutai) {
        this.soutai = soutai;
    }

    public String getYukyu() {
        return yukyu;
    }

    public void setYukyu(String yukyu) {
        this.yukyu = yukyu;
    }

    public String getKekkin() {
        return kekkin;
    }

    public void setKekkin(String kekkin) {
        this.kekkin = kekkin;
    }

    public String getKisya() {
        return kisya;
    }

    public void setKisya(String kisya) {
        this.kisya = kisya;
    }

    public String getKisyaTime() {
        return kisyaTime;
    }

    public void setKisyaTime(String kisyaTime) {
        this.kisyaTime = kisyaTime;
    }

    public String getGyomuTime() {
        return gyomuTime;
    }

    public void setGyomuTime(String gyomuTime) {
        this.gyomuTime = gyomuTime;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }
}
